cmake_minimum_required(VERSION 3.5)
project(cal_obs)

# 使用ament_cmake构建系统
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)

add_executable(pub_obs_node src/pub_obstacle.cpp src/GPS2ENU.cpp)
ament_target_dependencies(pub_obs_node rclcpp std_msgs)

add_executable(sub_obs_node src/sub_obstacle.cpp)
ament_target_dependencies(sub_obs_node rclcpp std_msgs)

install(TARGETS
  pub_obs_node
  sub_obs_node
  DESTINATION lib/${PROJECT_NAME})
  
ament_package()
